package com.ctrip.corp.obt.shard.configuration;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author marco.zheng
 * @version 1.0
 * @date 2022/01/14
 * @description durid数据源配置信息
 * @see
 * @since 1.0
 */
@Data
@ToString
@ConfigurationProperties(prefix = DruidDatabaseProperties.DRUID_PREFIX)
public class DruidDatabaseProperties {

    static final String DRUID_PREFIX = "spring.druid";

    private String druidClassName;
    private String url;
    private String username;
    private String password;
    private int initialSize;
    private int maxActive;
    private int minIdle;
    private long maxWait;
    private long timeBetweenEvictionRunsMillis;
    private String validatingQuery;
    private Boolean testWhileIdle;

}
